package com.infore.siteManagement.entity.otherEntity;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.infore.siteManagement.entity.Equipment;


/**
 * llf
 * The persistent class for the INSTRUCTIONS_IDS database table.
 * 维护指令和设备中间表
 */
@Entity
@Table(name="INSTRUCTIONS_IDS")
@NamedQuery(name="Instructions.findAll", query="SELECT i FROM Instructions i")
public class Instructions implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="INSTRUCTIONS_ID")
	private String instructionsId;
	
	@JsonIgnoreProperties("instructions")
	@ManyToMany(mappedBy="instructions") 
	private Set<Equipment> equipment_Instructions;

	public Instructions() {
	}

	public String getInstructionsId() {
		return this.instructionsId;
	}

	public void setInstructionsId(String instructionsId) {
		this.instructionsId = instructionsId;
	}

	@JsonBackReference
	public Set<Equipment> getEquipment_Instructions() {
		return equipment_Instructions;
	}

	@JsonBackReference
	public void setEquipment_Instructions(Set<Equipment> equipment_Instructions) {
		this.equipment_Instructions = equipment_Instructions;
	}

}